﻿using NaturalNote.Core.Database;
using NaturalNote.Web.DbStorage.Entity;

namespace NaturalNote.Web.DbStorage
{
    public class PageStorageService
    {
        private IDataStorage dataStorage;

        public PageStorageService(IDataStorage dataStorage)
        {
            this.dataStorage = dataStorage;
        }

        public async Task SavePage(Pages pages)
        {
            await dataStorage.Save(pages);
        }
    }
}
